package com.example.exception;

import lombok.Getter;

/**
 * ClassName:ServiceException
 * Description:
 *
 * @Author 赵永峰
 * @Create 2024/5/9 10:53
 * @Version 1.0
 */
@Getter
public class ServiceException extends RuntimeException {
    private final Integer code;
    public ServiceException(String msg){
        super(msg);
        this.code=500;
    }
    public ServiceException(Integer code, String msg){
        super(msg);
        this.code=code;
    }
}
